import request from "@/utils/request.js";

export function listGoods(){
    return  request({
    url: '/webshop/goodsSpuInfo/list',
    method: 'get',
})
}
export function listGoodsSpuInfo(queryParams){
    return  request({
    url: '/webshop/goodsSpuInfo/listForPage',
    method: 'get',
    params: queryParams
})
}
export function getGoodsSpuInfo(id){
    return request({
        url: '/webshop/goodsSpuInfo/' + id,
        method: 'get',
    })
}

export function updateGoodsSpuInfo(form){
    return request({
        url: '/webshop/goodsSpuInfo',
        method: 'put',
        data: form
    })
}
export function addGoodsSpuInfo(form){
    return request({
        url: '/webshop/goodsSpuInfo',
        method: 'post',
        data: form
    })
}
export function delGoodsSpuInfo(ids){
   return  request({
    url: '/webshop/goodsSpuInfo/' + ids,
    method: 'delete'
})
}

